﻿using System;

namespace Entities
{
    [Serializable]
    public class tblCurrency
    {
        private string title;
        private string code;
        private string symbol_left;
        private string symbol_right;
        private bool status;
        private DateTime date_modified;

        public tblCurrency() {}

        public tblCurrency(string title, string code, string symbol_left, string symbol_right, bool status, DateTime date_modified)
        {
            this.title = title;
            this.code = code;
            this.symbol_left = symbol_left;
            this.symbol_right = symbol_right;
            this.status = status;
            this.date_modified = date_modified;
        }

        public string Title
        {
            get { return this.title; }
            set
            {
                this.title = value;
            }
        }

        public string Code
        {
            get { return this.code; }
            set
            {
                this.code = value;
            }
        }

        public string symbolLeft
        {
            get { return this.symbol_left; }
            set
            {
                this.symbol_left = value;
            }
        }

        public string symbolRight
        {
            get { return this.symbol_right; }
            set
            {
                this.symbol_right = value;
            }
        }

        public bool Status
        {
            get { return this.status; }
            set
            {
                this.status = value;
            }
        }

        public DateTime dateModified
        {
            get { return this.date_modified; }
            set
            {
                this.date_modified = value;
            }
        }

        public override string ToString()
        {
	        return this.title+"; "+this.code+"; "+this.symbol_left+"; "+this.symbol_right+"; "+this.status+"; "+this.date_modified+"; ";
	    }
	    public override bool Equals(Object obj)
	    {
            tblCurrency me = (tblCurrency)obj;
            bool ret = this.Title.Equals(me.Title);
	        return ret;
	    }
	    public override int GetHashCode()
	    {
            return this.Title.GetHashCode();
	    }

    }
}
